package com.hq.mes.bussiness.inrecord.domain;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.hq.mes.bussiness.BussinessBaseEntity;
import com.hq.mes.bussiness.inrecorddetail.domain.InrecordDetail;
import com.hq.mes.bussiness.warehouse.domain.Warehouse;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import me.zhengjie.base.BaseEntity;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;
import java.util.Set;

/**
* @author wsq
* @date 2021-12-16
*/
@Entity
@Getter
@Setter
@Table(name = "hq_inrecord")
@SQLDelete(sql = "update hq_inrecord set is_del = 'true' where id = ?")
@Where(clause = " is_del <> 'true' or is_del is null ")
@org.hibernate.annotations.Table(appliesTo = "hq_inrecord",comment="入库表")
public class Inrecord extends BussinessBaseEntity {

	
	@JsonIgnoreProperties(ignoreUnknown = true, value = {"inrecord"})
	@OneToMany(cascade = CascadeType.ALL)
	@JoinColumn(name = "inrecord_id", referencedColumnName = "id")
    private Set<InrecordDetail> 	details;
	

    
//    @Column(columnDefinition = "varchar(255) COMMENT '产品图片'")
//    private String 	picture;

}